FROM golang:alpine

MAINTAINER Qiang Zhou

WORKDIR /root/wowCoupon

COPY . /root/wowCoupon

WORKDIR /root/wowCoupon

RUN go env -w GOPROXY=https://goproxy.cn,direct

RUN go mod download

RUN go mod download github.com/ugorji/go

RUN go build main.go

EXPOSE 10240 10241

CMD [ "./main" ]
